package com.dgz.csmall.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
public class CategoryUpdateInfoParam implements Serializable {
    @ApiModelProperty(value = "分类名",required = true,example = "XX分类")
    @NotNull(message = "修改分类失败！分类名不能为空！")
    private String name;
    @ApiModelProperty(value = "分类关键词",example = "分类关键词1,分类关键词2")
    private String keywords;
    @ApiModelProperty(value = "分类序号",required = true,example = "97")
    @NotNull(message = "修改分类失败！分类序号不能为空！")
    @Range(max = 99,message = "修改分类失败！分类序号必须为0-99之间的数字！")
    private Integer sort;
    @ApiModelProperty(value = "分类图标",example = "XXXX.jpg")
    private String icon;
}
